package org.example.platform.beans.factory;

public class UserService {
    private String uId;

    private UserDao userDao;

    private String name;
    public UserService(String name){
        this.name= name;
    }

    public void queryUserById(){
        System.out.println("查询用户信息"+userDao.queryUserName(uId));
    }

    public void queryUser(){
        System.out.println("查询用户信息"+name);
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("");
        sb.append("").append(name);
        return sb.toString();
    }
}
